package kgc.qy.mapper;

import kgc.qy.pojo.Room;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomMapper {

    int deleteByPrimaryKey(Long id);
    //删除
    int deleteByRoom(String name);

    int insert(Room record);

    //添加
    int insertSelective(Room record);

    Room selectByPrimaryKey(Long id);

    List<Room> selectByname(@Param(value = "name") String name,
                            @Param(value = "dn") String dn,
                            @Param(value = "statusId")Integer statusId);

    int updateByPrimaryKeySelective(Room record);

    int updateByPrimaryKey(Room record);
}